package com.ruoyi.web.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.entity.Repairman;
import com.ruoyi.web.service.IRepairmanService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lqc
 * @since 2024-01-31
 */
@RestController
@RequestMapping("/repairman")
public class RepairmanController extends BaseController {

    private final IRepairmanService repairmanServiceImpl;

    public RepairmanController(IRepairmanService repairmanServiceImpl) {
        this.repairmanServiceImpl = repairmanServiceImpl;
    }

    @GetMapping("/list")
    public AjaxResult getList() {
        List<Repairman> list = repairmanServiceImpl.list();
        return success(list);
    }

}
